.bind( eventType [, eventData ], handler )
|
|
- 给匹配到的元素绑定事件
- 对于动态添加的元素,不会绑定事件。
.delegate( selector, eventType, eventData, handler )
|
|
- 对于动态添加的元素,会绑定事件。
.click( handler )
|
|
- 给元素绑定单击事件
- 对于动态添加的元素,不会绑定事件。
.on( events [, selector ] [, data ], handler )
|
|
- 对于动态添加的元素,会绑定事件
- jQuery源码中.bind()、.delegate()方法都是通过.on()方法实现的。